package com.iss.view.room;

import com.iss.view.view.Window;

import java.util.Scanner;

public class AddWindow extends Window {
    @Override
    public String print() {
        Scanner scanner = new Scanner(System.in);
        String roomNO = "NO.000";
        Integer status = 0;
        Integer roomType=1;
        Double price = 0.0;

        System.out.println("添加房间");
        System.out.println("请输入房间编号：");
        roomNO = scanner.next();
        System.out.println("请输入房间价格：");
        price = Double.parseDouble(scanner.next());

        Info.CURRENT_ROOM.setPrice(price);
        Info.CURRENT_ROOM.setRoomNO(roomNO);
        return "info";
    }

    @Override
    public Window getNextWindow(String cmd) {
        if(cmd.equals("info")){
            return  new Info();
        }
        return null;
    }

}
